package com.villaday.idf.util;

import com.villaday.idf.model.SortModel;
import com.villaday.idf.model.allVipMembersEntity;
import com.villaday.idf.model.vipMembersEntity;

import java.util.Comparator;

public class PinyinMemberComparator implements Comparator<allVipMembersEntity.BodyBean> {

	public int compare(allVipMembersEntity.BodyBean o1, allVipMembersEntity.BodyBean o2) {
		if (o1.getLetters().equals("@")
				|| o2.getLetters().equals("#")) {
			return -1;
		} else if (o1.getLetters().equals("#")
				|| o2.getLetters().equals("@")) {
			return 1;
		} else {
			return o1.getLetters().compareTo(o2.getLetters());
		}
	}

}
